home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / Handmade / ODTypesF.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  3.1 KB  |  119 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ODTypesF.h
  3.  
  4.     Contains:    Definitions for Foreign types which can't be described in IDL
  5.  
  6.     Owned by:    Richard Rodseth
  7.  
  8.     Copyright:    © 1994 - 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <4>      9/8/95    VL        1275241, 1283463: Added
  13.                                     ODPlatformDragReference.
  14.          <3>     5/25/95    jpa        Don't include GX header(s) [1253324]
  15.          <2>     3/22/95    jpa        Added ODPlatformPrintJob. [1230236]
  16.          <1>     1/25/95    jpa        first checked in
  17.                                  ---Moved to ODSOM:Interfaces:Handmade:
  18.         <12>     1/22/95    NP        Add ODHandle.
  19.         <11>    11/30/94    RR        #1188078 Removed unused and inappropriate
  20.                                                                         types
  21.         <10>     9/23/94    RR        Removed forward declaration of ODPart
  22.          <9>     8/18/94    TÇ        #1181622 Set Richard to the Owned by:
  23.                                     field
  24.          <8>     7/26/94    eeh        remove typedef of ODQDPoint
  25.          <7>     7/19/94    jpa        Include QDFixM.h.
  26.          <6>     6/20/94    TÇ        Added ODQDGlobalRec
  27.          <5>     6/15/94    jpa        Added ODQDPoint definition.
  28.          <4>     6/13/94    NP        Added comment after endif
  29.          <3>      6/7/94    CG        Commented out def for GetIndString.
  30.          <2>     5/23/94    RR        Added ODPlatformType
  31.          <2>      4/4/94    RR        XMP -> OD
  32.     
  33.     In Progress:
  34.         
  35. */
  36.  
  37. #ifndef _ODTYPESF_
  38. #define _ODTYPESF_
  39.  
  40. /*
  41.     This is a hand-made file, containing Macintosh "foreign" types, which cannot be defined in IDL. 
  42.     Actually, all of them are 4-byte types which are defined in ODTypesM.idl as "unsigned long" 
  43.     rather than as foreign, and are not emitted. This means that they can be marshalled, and 
  44.     can be used without typecasting, since the actual definition is obtained from this file.
  45.     
  46.     This file is included in ODObject.h by way of  a "passThru" statement in ODObject.idl
  47. */
  48.  
  49.  
  50. #ifndef __TYPES__
  51. #include <Types.h>
  52. #endif
  53.  
  54. #ifndef __FILES__
  55. #include <Files.h>
  56. #endif
  57.  
  58. #ifndef _QDFIXM_
  59. #include <QDFixM.h>
  60. /* 
  61.     This header fixes problems with the incorrect use of the 'frame'
  62.     constant defined in QuickDraw.h ... see comments in QDFixM.h for details.
  63. */
  64. #endif
  65.  
  66. #ifndef __QUICKDRAW__
  67. #include <QuickDraw.h>
  68. #endif
  69.  
  70. #ifndef __WINDOWS__
  71. #include <Windows.h>
  72. #endif
  73.  
  74. #ifndef __MENUS__
  75. #include <Menus.h>
  76. #endif
  77.  
  78. #ifndef __AEREGISTRY__
  79. #include <AERegistry.h>
  80. #endif
  81.  
  82. #ifndef __APPLEEVENTS_
  83. #include <AppleEvents.h>
  84. #endif
  85.  
  86. #ifndef __EVENTS__
  87. #include <Events.h>
  88. #endif
  89.  
  90. #ifndef __FIXMATH__
  91. #include <FixMath.h>            // Must include before GX headers...
  92. #endif
  93.  
  94. #ifndef __DRAG__
  95. #include <Drag.h>
  96. #endif
  97.  
  98. //#ifndef __GXTYPES__
  99. //#include <GXTypes.h>            /* for gxShape type */
  100. //#endif
  101.  
  102. /* Definitions of 4-byte types defined in ODTypesM.idl, but not emitted */
  103.  
  104. typedef GrafPtr         ODPlatformCanvas;    // But it's a gxViewPort for QuickDraw GX
  105. typedef void*            ODPlatformPrintJob;
  106. typedef    void*            ODPlatformShape;    // Graphics-system-dependent shape data
  107. typedef void*            ODPlatformTransform;    // Graphics-system-dependent transform data
  108. typedef RgnHandle        ODRgnHandle;
  109. typedef struct gxPrivateShapeRecord *ODgxShape;    // Makes it synonymous with gxShape type
  110. typedef WindowPtr        ODPlatformWindow;
  111. typedef MenuHandle        ODPlatformMenu;    
  112. typedef Handle            ODPlatformMenuBar;
  113. typedef OSType            ODOSType;
  114. typedef ODOSType          ODPlatformType;    // Host platform file & data type
  115. typedef Handle          ODHandle; 
  116. typedef DragReference    ODPlatformDragReference;
  117.  
  118. #endif // _ODTYPESF_
  119.